package v1

import (
	"core/repo"
	v1 "gate/api/v1"
	"gate/auth"

	"github.com/gin-gonic/gin"
)

func NewWxApiRouter(r *gin.Engine, repo *repo.Manager) {
	wxapi := v1.NewWxApi(repo)
	r.POST("/wxautologin", wxapi.Wxautologin)

	privateRoute := r
	privateRoute.Use(auth.DeToken())
	// 获取排行榜的用户信息
	privateRoute.POST("/wxrankinfo", wxapi.Wxrankinfo)
	privateRoute.POST("/event", wxapi.Event)

}
